<?php
//Svetlana Gornostajeva, Student 13, reedeti 17.15-21.15, 23.10.2011
function string_info($string)  {
}
$string = "digitaalkaamera";
echo $string; 
echo "<pre>";
echo $string[0]; 
echo "<pre>";
echo substr($string, strlen($string)-1, 1);
echo "<br>Teksti pikkus: ".strlen($string); 
echo "<br>Labiv suurtaht: ".strtoupper( $string);
echo "<br>Labiv vaiketaht: ".strtolower( $string); 
echo "<pre>";
echo substr_count($string, "a");

?>



